<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="layout" content="wechat"/>
    <title>免费评房</title>
</head>

<body>
<header class="create-header">
    <ul class="creat-flowList flex-box">
        <li data-id="01" class="flex1 active">
            <span></span>

            <h3>房产详细地址</h3>
        </li>
        <li data-id="03" class="flex1 active">
            <span></span>

            <h3>极速估值</h3>
        </li>
    </ul>
</header>
<form resource="${this.house}">
    <div class="bgcWhite asset-valuation">
        <div class="valuation-info">
            <g:if test="${this.house?.status == 'Completed'}">
                <div class="valuation-info-warp">
                    <div class="valuation-info-top">
                        <div class="valuation-info-top-txt">最高可贷金额<span>（可贷金额以实际金额为准）</span></div>

                        <div class="valuation-info-top-txt-val"><g:formatNumber
                                number="${this.house?.loanAmount / 10000 * 0.7}" type="number"
                                maxFractionDigits="0"/> <span>万元</span></div>

                        <div class="valuation-info-top-Price">
                            <div class="loanAmount"><h5>评估总价(万元)</h5>

                                <p><g:formatNumber number="${this.house?.loanAmount / 10000}" type="number"
                                                   maxFractionDigits="4"/></p></div>

                            <div class="valuation-info-top-Price-line"></div>

                            <div class="unitPrice"><h5>评估单价(元/平方米)</h5>

                                <p><g:formatNumber number="${this.house?.unitPrice}" type="number"
                                                   maxFractionDigits="2"/></p></div>
                        </div>

                    </div>

                    <div class="bigBtn" style="padding: 0">
                        <g:link action="wxCreate3Step1" class="linkBtn weui-btn weui-btn_plain_default" params="[code: null, stage: null, opportunityId: this.house?.opportunity?.id]">申请贷款</g:link>

                    </div>
                </div>
            </g:if>

        </div>

        <div class="bigBtn">
            <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx759dbfa790cfd63b&redirect_uri=https%3A%2F%2Fgdxy.cindata.cn%2FwechatOpportunity%2FwxCreate2Step1&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
               class="linkBtn2 weui-btn weui-btn_plain_default">评估新押品</a>

        </div>
    </div>
</form>

<script>
    $(function () {
        $(".linkBtn").click(function () {
            $(this).addClass("active");
        });
        $(".linkBtn2").click(function () {
            $(this).addClass("active");
        });

    });
</script>
</body>
</html>
